An Object - Oriented Approachto Formal
نویسندگان
چکیده
Formal methods for software development are becoming increasingly necessary as softwarebecomes an important part of everyday life. To handle the complexities inherent in large-scale software systems these methods need to be combined with a sound developmentmethodology which supports modularity and reusability. Object orientation, based on theconcept that systems are composed of collections of interacting objects whose behavioursare speci ed by classes, is such a methodology.This thesis presents the formal speci cation language Object-Z which is an extension ofthe formal speci cation language Z to facilitate speci cation in an object-oriented style.The major extension in Object-Z is the introduction of the class schema which capturesthe object-oriented notion of a class by encapsulating a single state schema with all theoperation schemas which may a ect its variables. The class schema is not simply asyntactic extension but also de nes a type whose instances are objects. Object-Z alsosupports single and multiple inheritance allowing classes to be reused in the de nitionof other classes and polymorphism allowing a variable to be assigned to objects of morethan one class.The thesis also presents a set-theoretic model of classes in Object-Z which could form thebasis of a full formal semantics. The model, based on the histories of a class, i.e. thesequences of states and operations which an object of the class can undergo, facilitatesthe speci cation of liveness properties using a temporal logic notation. A fully-abstractmodel of classes in Object-Z, derived from the history model, is also presented. Thismodel is used to formally de ne a notion of behavioural compatibility in Object-Z whichcould form the basis of a theory of class re nement. AcknowledgementsI would like to express my sincere thanks to my supervisor, Dr Roger Duke, for hiscomments and guidance as the ideas in this thesis evolved, and for his unremitting en-couragement and help when they weren't evolving so well. I would also like to thank thefollowing people without whose contributions to the development of Object-Z, this thesiswould not have been possible { Gordon Rose, Paul King, David Duke and David Car-rington. Thanks go also to Ian Hayes, Cecily Bailes and Anthony Lee for their invaluablecomments and suggestions.I would like to acknowledge the generous nancial support provided by the OverseasTelecommunications Corporation (OTC) of Australia and the Commonwealth Govern-ment of Australia in the form of postgraduate awards. I would also like to acknowledgethe Department of Computer Science for support in the form of a research scholarshipand tutorship, and for nancing attendance at several conferences both in Australia andoverseas.Finally, I would like to acknowledge the support of my family and friends. To my parents,I express my love and gratitude for their encouragement and nancial support in myearlier years of study. I also, especially, thank Kim for her continuing love, patience andunderstanding.
منابع مشابه
Modeling and Evaluation of Stochastic Discrete-Event Systems with RayLang Formalism
In recent years, formal methods have been used as an important tool for performance evaluation and verification of a wide range of systems. In the view points of engineers and practitioners, however, there are still some major difficulties in using formal methods. In this paper, we introduce a new formal modeling language to fill the gaps between object-oriented programming languages (OOPLs) us...
متن کاملModeling and Evaluation of Stochastic Discrete-Event Systems with RayLang Formalism
In recent years, formal methods have been used as an important tool for performance evaluation and verification of a wide range of systems. In the view points of engineers and practitioners, however, there are still some major difficulties in using formal methods. In this paper, we introduce a new formal modeling language to fill the gaps between object-oriented programming languages (OOPLs) us...
متن کاملA Multi-Formalism Modeling Framework: Formal Definitions, Model Composition and Solution Strategies
In this paper, we present a multi-formalism modeling framework (abbreviated by MFMF) for modeling and simulation. The proposed framework is defined based on the concepts of meta-models and uses object-orientation to overcome the complexities and to enhance the extensibility. The framework can be used as a basis for modeling by various formalisms and to support model composition in a unified man...
متن کاملA Multi-Formalism Modeling Framework: Formal Definitions, Model Composition and Solution Strategies
In this paper, we present a multi-formalism modeling framework (abbreviated by MFMF) for modeling and simulation. The proposed framework is defined based on the concepts of meta-models and uses object-orientation to overcome the complexities and to enhance the extensibility. The framework can be used as a basis for modeling by various formalisms and to support model composition in a unified man...
متن کاملDeclarative Semantics in Object-Oriented Software Development - A Taxonomy and Survey
One of the modern paradigms to develop an application is object oriented analysis and design. In this paradigm, there are several objects and each object plays some specific roles in applications. In an application, we must distinguish between procedural semantics and declarative semantics for their implementation in a specific programming language. For the procedural semantics, we can write a ...
متن کامل